/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const classesRouter = {
  path: '/classes',
  component: Layout,
  redirect: '/classes/complex-table',
  name: 'classes',
  meta: {
    title: 'classes.classes',
    icon: 'peoples'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/classes/index'),
      name: 'classesList',
      meta: { title: 'classes.classesList' }
    },
    {
      path: 'create',
      component: () => import('@/views/classes/create'),
      name: 'classesCreate',
      meta: { title: 'classes.classesCreate' }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/classes/edit'),
      name: 'classesEdit',
      meta: { title: 'classes.classesEdit' }
    }
  ]
}
export default classesRouter
